﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace Gym.Controllers
{
    public class TestController : ApiController
    {
        [HttpGet]
        public string getMessage()
        {
            var url = Request.RequestUri.ToString();
            var data = Request.Content.ReadAsStringAsync().Result;
            Common.LogHelper.InfoInfo("收到get消息。地址：" + url + "\r\n实体：" + data);
            return "ok";
        }
        [HttpPost]
        public string postMessage()
        {
            var url = Request.RequestUri.ToString();
            var data = Request.Content.ReadAsStringAsync().Result;
            Common.LogHelper.InfoInfo("收到get消息。地址：" + url + "\r\n实体：" + data);
            return "ok";
        }
    }
}